package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.PageDTO;
import com.sky.entity.Dish;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.query.DishQuery;
import com.sky.vo.DishVO;

import java.util.List;

/**
* @author 马毅爽
* @description 针对表【dish(菜品)】的数据库操作Service
* @createDate 2023-11-03 09:41:33
*/
public interface DishService extends IService<Dish> {

    void save(DishDTO dishDTO);

    PageDTO<DishVO> queryPage(DishQuery dishQuery);

    void deleteByIds(List<Long> ids);

    DishVO queryById(Long id);

    void updateDish(DishDTO dishDTO);

    void updateStatus(Integer status, Long id);

    List<DishVO> listByCategoryId(Long categoryId);
}
